﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using LispInterpretor;

namespace UnitTests
{
    [TestClass]
    public class TestOr
    {
        [TestMethod]
        public void TestOrTrue()
        {
            Assert.AreEqual(true, Evaluator.Eval("(or True False)"));
        }

        [TestMethod]
        public void TestOrFalse()
        {
            Assert.AreEqual(false, Evaluator.Eval("(or False False)"));
        }
        
        [TestMethod]
        [ExpectedException(typeof(InvalidProgramException))]
        public void TestInvalidArgumentSize()
        {
            Evaluator.Eval("(or False)");
        }
    }
}
